package com.guchenbo.scala.c1

import com.guchenbo.scala.c2.Pack2

import scala.beans.BeanProperty

/**
 * 面向对象-封装示例
 *
 * @author guchenbo
 * @date 2022/3/15
 */
object PackDemo {
  def main(args: Array[String]): Unit = {
    val pack = new Pack2
    pack.name2 = "1"
    println(pack.name)
    pack.setName2("2")
    println(pack.getName2)
  }
}

